package com.finance.activemq.service;

import com.finance.activemq.configuration.ActivemqConfiguration;
import lombok.Data;
import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.springframework.stereotype.Component;

/**
 * 消息发送者
 * Created by CBWL on 2017/4/21.
 */
@Component
@Data
public class ActiveMqSender {
    @Produce(uri= ActivemqConfiguration.TOPIC_ACCEPT_ORDER,context = "camelContext")
    private ProducerTemplate acceptOrderProducerTemplate;
    @Produce(uri= ActivemqConfiguration.TOPIC_COMPUTE,context = "camelContext")
    private ProducerTemplate computeProducerTemplate;
}
